import { Component, OnInit } from '@angular/core';


@Component({
  selector: 'app-jiuyuan-xq',
  templateUrl: './jiuyuan-xq.component.html',
  styleUrls: ['./jiuyuan-xq.component.css']
})
export class JiuyuanXqComponent implements OnInit {

  constructor() { }

  ngOnInit(): void {
    window.scrollTo(0, 0);
    $(function () {
      $('.vehicle_xinx_1 .chak').mousedown(function () {
        var Div1 = $('.vehicle_xinx_1 .hide').css('display');
        if (Div1 == 'none') {
          $('.vehicle_xinx_1 .hide').show();
          $('.vehicle_xinx_1 .chak i').addClass('no');
        } else {
          $('.vehicle_xinx_1 .hide').hide();
          $('.vehicle_xinx_1 .chak i').removeClass('no');
        }
      })
    })

    // banner
    var swiper = new Swiper('.banner_shouy', {
      pagination: {
        el: '.lunbo_banner',
        type: 'fraction',
      },
      autoplay: {
        delay: 3000,
        stopOnLastSlide: false,
        disableOnInteraction: true,
      },
    });
  }

}
